package cn.layku.service.order.service.impl;

import cn.layku.service.order.mapper.OrderMapper;
import cn.layku.service.order.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Resource(name = "orderMapper")
    private OrderMapper orderMapper;


    /**
     * 添加
     */
    @Override
    public int add(Map<String, Object> map) {
        return orderMapper.insert(map);
    }
}
